/**
 * 
 */
package code.google.qinglan;

import code.google.qinglan.min.CompressEngin;
import code.google.qinglan.min.CompressJS;
import code.google.qinglan.xml.ConfigReader;

/**
 * @author wxq
 *
 */
public class QinglanMin {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if(args.length == 0){
			System.out.println("QinglanMin config fliePath NotFound!");
		}else{
			CompressEngin ce = new CompressEngin();
			ConfigReader cr = new ConfigReader();
			ce.setCompressJS(new CompressJS());
			for(String fliepath : args){
				ce.setCompressUnitList(cr.readConfig(fliepath));
				ce.doCompress();
			}
		}
		
	}

}
